package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.domain.entity.ExaminePlan;
import com.ruoyi.system.mapper.ExaminePlanMapper;
import com.ruoyi.system.service.ExaminePlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: ruohao
 * @Date: 2023/9/3
 **/
@Service
public class ExaminePlanServiceImpl implements ExaminePlanService {

    @Autowired
    ExaminePlanMapper examinePlanMapper;
    @Override
    public List<ExaminePlan> selectList(ExaminePlan examinePlan) {
        return examinePlanMapper.selectList(examinePlan);
    }

    @Override
    public ExaminePlan selectById(Long id) {
        return examinePlanMapper.selectById(id);
    }

    @Override
    public List<ExaminePlan> selectByIds(List<Long> ids) {
        return examinePlanMapper.selectByIds(ids);
    }

    @Override
    public Boolean create(ExaminePlan examinePlan) {
        return examinePlanMapper.insert(examinePlan) == 1;
    }

    @Override
    public Boolean update(ExaminePlan examinePlan) {
        return examinePlanMapper.update(examinePlan) == 1;
    }

    @Override
    public Boolean deleteById(Long id) {
        return examinePlanMapper.deleteById(id) == 1;
    }
}
